function set_image_onclick()
{
	var image_magnifier = document.getElementById('image-magnifier');

	var imgs = document.getElementsByTagName('img')
	var image_magnifier_content = document.getElementById("image-magnifier-content");
	for (var idx = 0; idx < imgs.length; idx += 1)
	{
		imgs[idx].onclick = function(){
			image_magnifier.style.display = "block";
			image_magnifier_content.src = this.src;
		}
	}

	image_magnifier.onclick = function() {
		image_magnifier.style.display = "none";
	}
}
